package com.isoft.illustrationsdraw.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import lombok.Data;

@Data
@TableName("illustrations")
public class Illustration {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String title;
    private String description;
    private Long authorId;
    private LocalDateTime createdAt;
    private int visibility;
    private int likesCount;

    public Illustration(){}
}
